package com.bean;

import com.bean.anno.TableExcel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@Entity
@Table(name = "media_info")
@TableExcel(name="mediaInfo", content = "EasyExcel媒体信息",jpaBeanName="com.mapper.repository.MediaInfoRepository")
public class MediaInfo {

    @Id
    private String id;

    private String name;

    private String type;

    private String origin;

    private String other;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createtime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatetime;

    @JsonProperty("userid")
    private String creator;
}
